package com.gitee.fantaros.util;

import java.io.FileWriter;
import java.io.StringWriter;

public class JsonWriter {
    public static void writeToJson(String path, String json) throws Exception{
        try (FileWriter fileWriter = new FileWriter(path)){
            fileWriter.write(json);
            fileWriter.flush();
        }
    }
}
